<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <script src="../jQuery-3.6.3.min.js"> </script>
    <script>
        $(function () {
            $("p").hover(function () {

                $(this).css("color", "red");

            }, function () {
                $(this).css("color", "green");
            })


        })
    </script>
</head>
<body>
    <p>不良人</p>
</body>
</html>